﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.WareHouse.Domain
{
    /// <summary>
    /// 审批流程记录表
    /// </summary>
    [SugarTable("ProcessRecords", TableDescription = "审批表")]
    public class ProcessRecords
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true, ColumnDescription = "流程节点主键")]
        public long ProcessRecordsId { get; set; }

        /// <summary>
        /// 流程实例Id
        /// </summary>
        [SugarColumn(ColumnDescription = "流程实例Id")]
        public string ApprovalProcessId { get; set; }

        /// <summary>
        /// 当前节点编号
        /// </summary>
        [SugarColumn(ColumnDescription = "当前节点编号")] 
        public string CurrentNodeSn { get; set; }

        /// <summary>
        /// 当前节点名称
        /// </summary>
        [SugarColumn(ColumnDescription = "当前节点名称")]
        public string CurrentNode { get; set; }

        /// <summary>
        /// 操作人Id
        /// </summary>
        [SugarColumn(ColumnDescription = "操作人Id")] 
        public string OperatorId { get; set; }

        /// <summary>
        /// 操作人名称
        /// </summary>
        [SugarColumn(ColumnDescription = "操作人名称")]
        public string Operator { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnDescription = "更新时间")] 
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 是否读取
        /// </summary>
        [SugarColumn(ColumnDescription = "是否读取")] 
        public bool IsRead { get; set; }

        /// <summary>
        /// 是否通过
        /// </summary>
        [SugarColumn(ColumnDescription = "是否通过")] 
        public int Ispass { get; set; } 

        /// <summary>
        /// 审批意见
        /// </summary>
        [SugarColumn(ColumnDescription = "审批意见",IsNullable =true)]
        public string ApproveOpinion { get; set; }
    }
}